#!/usr/bin/python3

import os
import shutil

selfDir = os.path.dirname(os.path.realpath(__file__))

dn = os.path.join(selfDir, "..", "python3", "elemlib")
for fn in os.listdir(dn):
    fullfn = os.path.join(dn, fn)
    if os.path.isdir(fullfn):
        continue
    dstfullfn = os.path.join("/usr/lib/python3.13/site-packages/elemlib", fn)
    shutil.copy(fullfn, dstfullfn)
    print(dstfullfn)

dn = os.path.join(selfDir, "..", "python3", "elemlib", "datasrc")
for fn in os.listdir(dn):
    fullfn = os.path.join(dn, fn)
    if os.path.isdir(fullfn):
        continue
    dstfullfn = os.path.join("/usr/lib/python3.13/site-packages/elemlib/datasrc", fn)
    shutil.copy(fullfn, dstfullfn)
    print(dstfullfn)
